import axios from '../axios'

/*
 * 登录数据接口
 */

// 登录
export const login = (data) => {
    return axios({
        url: '/login',
        method: 'post',
        data
    })
}

// 退出
export const logout = (data) => {
    return axios({
        url: '/logout',
        method: 'post',
        data
    })
}
